package com.vkmessenger.gui.activities.messages;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;
import com.vkmessenger.R;
import com.vkmessenger.gui.activities.contacts.OnlineActivity;
import com.vkmessenger.gui.components.AudioPanel;

/**
 * Created by IntelliJ IDEA.
 * User: Evgeniy Krasko
 * Date: 24.05.12
 * Time: 9:13
 */
public class MessagesActivity extends Activity {
    ImageView compose;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.messages);
        compose = (ImageView) findViewById(R.id.image_compose);

        compose.setOnClickListener(new View.OnClickListener() {
            public void onClick(View view) {
                Intent intent = new Intent();
                intent.setClass(MessagesActivity.this, OnlineActivity.class);
                startActivity(intent);
            }
        });



        ((AudioPanel)findViewById(R.id.ap1)).wireWithSong("http://cs5032.userapi.com/u27432518/audio/3f1788f084f6.mp3",
                "Scorpions", "Lonely Nights");


        ((AudioPanel)findViewById(R.id.ap2)).wireWithSong("http://cs4493.userapi.com/u17524628/audio/0fd1658671a3.mp3",
                "Aqua", "Good Morning Sunshine");
    }

}
